
.container {
  margin: 0 auto;
  width: 1200px;
}

/*内边距*/
.p10 {
  padding: 10px;
}
.p20 {
  padding: 20px;
}
.pt10 {
  padding-top: 10px;
}
.pt20 {
  padding-top: 20px;
}
.pt30 {
  padding-top: 30px;
}
.p-6-0 {
  padding: 6px 0;
}

/*外边距*/
.m10 {
  margin: 10px;
}
.mt20 {
  margin-top: 20px;
}
.mt30 {
  margin-top: 30px;
}
.ml6 {
  margin-left: 6px;
}
.ml10 {
  margin-left: 10px;
}
.ml20 {
  margin-left: 20px;
}

/*宽度*/
.w200 {
  width: 200px;
}
.w160 {
  width: 160px;
}

/*字体大小*/
.f14 {
  font-size: 14px;
}

/*定位*/
.pr {
  position: relative;
}

/*颜色*/
.white {
  color: $white;
}
.red {
  color: $red;
}
.green {
  color: $green;
}
.yellow {
  color: $yellow;
}
.gray9 {
  color: $gray9;
}
.gray6 {
  color: $gray6;
}
.gray3 {
  color: $gray3;
}
.gray {
  color: $gray;
}

/*边框*/
.border {
  border: 1px solid $gray;
}

/*截取*/
.ellipsis-1 {
  width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/*四角边*/
.corner-top {
  &::before,
  &::after {
    display: block;
    content: "";
    position: absolute;
    top: -2px;
    width: 10px;
    height: 10px;
    border-top: 2px solid $main_color;
    z-index: 90;
  }

  &::before {
    left: -2px;
    border-left: 2px solid $main_color;
  }

  &::after {
    right: -2px;
    border-right: 2px solid $main_color;
  }
}
.corner-bottom {
  &::before,
  &::after {
    display: block;
    content: "";
    position: absolute;
    bottom: -2px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid $main_color;
    z-index: 90;
  }

  &::before {
    left: -2px;
    border-left: 2px solid $main_color;
  }

  &::after {
    right: -2px;
    border-right: 2px solid $main_color;
  }
}

/*布局*/
.d-s-s {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}
.d-s-c {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.d-e-c {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.d-c-c {
  display: flex;
  justify-content: center;
  align-items: center;
}
.d-a-c {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.d-b-c {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-1 {
  flex: 1;
}
